package net.xdclass.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class ProductVO {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "封面图")
    @JsonProperty("cover_img")
    private String coverImg;

    @ApiModelProperty(value = "详情")
    private String detail;

    @ApiModelProperty(value = "老价格")
    @JsonProperty("old_amount")
    private BigDecimal oldAmount;

    @ApiModelProperty(value = "新价格")
    private BigDecimal amount;

    @ApiModelProperty(value = "库存")
    private Integer stock;

}
